<?php

class CurlDownloader {

	protected $url = '';

	public function __construct($url) {
		$this->url = $url;
	}

	public function download() {
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL, $this->url);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
		curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0');

		$data = curl_exec($ch);
		curl_close($ch);
		unset($ch);
		return $data;
	}
}

?>